package com.nddwm.poi.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.nddwm.poi.entity.Account;
import com.nddwm.poi.mapper.AccountMapper;
import com.nddwm.poi.service.AccountService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/*
 *功能描述
 *@package com.nddwm.poi.service.impl
 *@description 个人账户类
 *@date 2021/11/30
 *@USER 刘观圣
 */
@Service
public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> implements AccountService {


    @Transactional
    public Boolean insertTest(Account account, Boolean status) {
        Boolean insert = this.insert(account);
        if (status) {
            throw new RuntimeException("错误信息!");
        }
        return insert;
    }
}
